package com.ly.repository;

import com.ly.entity.Role;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * 角色数据DAO
 * @author ：LY
 * @date ：Created in 2020/11/8 20:41
 * @modified By：
 */
public interface RoleRepository extends CrudRepository<Role,Long> {
    List<Role> findRolesByUserId(Long userId);
}
